package cn.explink.dop.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.explink.dop.dao.StoDelDao;
import cn.explink.dop.entity.order.StoDelEntity;

/**
 * 业务层
 * @author firefly 2015-2-28 15:08
 *
 */
@Service
@Transactional
public class StoDelService {
	
	@Autowired
	private StoDelDao stoDelDao;
	
	public StoDelEntity add(final StoDelEntity sd) {
		return stoDelDao.add(sd);
	}
	
	public void modify(final StoDelEntity sd) {
		stoDelDao.modify(sd);
	}
	
	public List<StoDelEntity> getListData(final StoDelEntity sd) {
		return stoDelDao.finds(sd);
	}
	
	public Map<String, Object> getListDataByPage(final StoDelEntity sd, final int pageNum, final int pageSize) {
		return stoDelDao.findByPage(sd, pageNum, pageSize);
	}
	
	public int deleteData(final List<StoDelEntity> sdList) {
		return stoDelDao.delete(sdList);
	}
}
